package com.ruoyi.member.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.member.mapper.MemberWalletLogMapper;
import com.ruoyi.member.domain.MemberWalletLog;
import com.ruoyi.member.service.IMemberWalletLogService;

/**
 * 会员钱包日志Service业务层处理
 *
 * @author ruoyi
 * @date 2025-10-28
 */
@Service
public class MemberWalletLogServiceImpl implements IMemberWalletLogService
{
    @Autowired
    private MemberWalletLogMapper memberWalletLogMapper;

    /**
     * 查询会员钱包日志
     *
     * @param memberWalletLogId 会员钱包日志主键
     * @return 会员钱包日志
     */
    @Override
    public MemberWalletLog selectMemberWalletLogByMemberWalletLogId(Integer memberWalletLogId)
    {
        return memberWalletLogMapper.selectMemberWalletLogByMemberWalletLogId(memberWalletLogId);
    }

    /**
     * 查询会员钱包日志列表
     *
     * @param memberWalletLog 会员钱包日志
     * @return 会员钱包日志
     */
    @Override
    public List<MemberWalletLog> selectMemberWalletLogList(MemberWalletLog memberWalletLog)
    {
        return memberWalletLogMapper.selectMemberWalletLogList(memberWalletLog);
    }

    /**
     * 新增会员钱包日志
     *
     * @param memberWalletLog 会员钱包日志
     * @return 结果
     */
    @Override
    public int insertMemberWalletLog(MemberWalletLog memberWalletLog)
    {
        return memberWalletLogMapper.insertMemberWalletLog(memberWalletLog);
    }

    /**
     * 修改会员钱包日志
     *
     * @param memberWalletLog 会员钱包日志
     * @return 结果
     */
    @Override
    public int updateMemberWalletLog(MemberWalletLog memberWalletLog)
    {
        return memberWalletLogMapper.updateMemberWalletLog(memberWalletLog);
    }

    /**
     * 批量删除会员钱包日志
     *
     * @param memberWalletLogIds 需要删除的会员钱包日志主键
     * @return 结果
     */
    @Override
    public int deleteMemberWalletLogByMemberWalletLogIds(Integer[] memberWalletLogIds)
    {
        return memberWalletLogMapper.deleteMemberWalletLogByMemberWalletLogIds(memberWalletLogIds);
    }

    /**
     * 删除会员钱包日志信息
     *
     * @param memberWalletLogId 会员钱包日志主键
     * @return 结果
     */
    @Override
    public int deleteMemberWalletLogByMemberWalletLogId(Integer memberWalletLogId)
    {
        return memberWalletLogMapper.deleteMemberWalletLogByMemberWalletLogId(memberWalletLogId);
    }

    /**
     * 根据会员用户ID查询钱包日志
     *
     * @param memberUserId 会员用户ID
     * @return 会员钱包日志集合
     */
    @Override
    public List<MemberWalletLog> selectMemberWalletLogListByMemberUserId(Integer memberUserId)
    {
        return memberWalletLogMapper.selectMemberWalletLogListByMemberUserId(memberUserId);
    }
}
